﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.Runtime.Serialization;
using ddcCajamarca.BusinessEntities.Directorio;
using ddcCajamarca.Repository.Directorio.Service;

namespace ddcCajamarca.Repository.Directorio
{
    public class UbigeoRepository:MasterRepository,IUbigeoRepository
    {
        public Ubigeo GetFromUbigeoById(string id)
        {
            return Context.Ubigeos.Find(id);
        }

        public IEnumerable<Ubigeo> GetAllUbigeo()
        {
            return Context.Ubigeos;
        }
    }
}
